package com.tian.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author tianwc  公众号：java后端技术全栈、面试专栏
 * @version 1.0.0
 * @date 2023年10月10日 21:11
 * 在线刷题 1200+题和1000+篇干货文章：<a href="https://woaijava.cc/">博客地址</a>
 * <p>
 * 查询充值记录
 */
public class UserChargeRecordQueryRespDto implements Serializable {
    private Long id;
    /**
     * 交易流水号
     */
    private String tradeNo;
    /**
     * 充值金额
     */
    private BigDecimal amount;
    /**
     * 支付方式
     * 1：微信支付
     * 2：支付宝支付
     * 3：....
     */
    private Integer payType;
    /**
     * 费用
     */
    private BigDecimal feeAmount;
    /**
     * 实际到账金额= amount - feeAmount
     */
    private BigDecimal actualReceivedAmount;
    /**
     * 充值时间
     */
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public BigDecimal getFeeAmount() {
        return feeAmount;
    }

    public void setFeeAmount(BigDecimal feeAmount) {
        this.feeAmount = feeAmount;
    }

    public BigDecimal getActualReceivedAmount() {
        return actualReceivedAmount;
    }

    public void setActualReceivedAmount(BigDecimal actualReceivedAmount) {
        this.actualReceivedAmount = actualReceivedAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "UserChargeRecordQueryRespDto{" +
                "id=" + id +
                ", tradeNo='" + tradeNo + '\'' +
                ", amount=" + amount +
                ", payType=" + payType +
                ", feeAmount=" + feeAmount +
                ", actualReceivedAmount=" + actualReceivedAmount +
                ", createTime=" + createTime +
                '}';
    }
}
